<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/6/10
  Time: 22:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <meta charset="utf-8">
    <title>黄山学院-留学生信息管理系统</title>
    <link rel="stylesheet" href="/css/main_style.css">
    <link rel="stylesheet" href="/css/scholarship.css">
    <script src="/js/main_function.js"></script>
    <script>
        function apply(){
            let form_data=new FormData(document.getElementById('scholarship'));
            Ajax.post_file('/scholarship/apply',form_data,function(then){
                console.log(then);
                let result=JSON.parse(then);
                console.log(result);
                if(result.code==100){
                    alert("奖学金申请成功，目前等待教师审批！");
                }
            });
        }
    </script>
</head>
<body>
<div id="navigation">
    <div class="navigation-left"><img src="/img/school.png" style="width: 170px;height: 60px;"></img></div>
    <div class="navigation-center"><a>奖学金申请</a></div>
    <div class="navigation-right">
        <div class="drop-menu" style="float:right;">
            <div class="user-menu"></div>
            <div class="drop-menu-content">
                <a href="/logout">注销登录</a>
                <a href="/rePassword">修改密码</a>
            </div>
        </div>
    </div>
</div>
<div id="broadside">
    <div class="broadside-logo">
        <h1>欢迎学生</h1>
        <p>${student_id}</p>
    </div>
    <div class="broadside-menu">
        <p><img src="/img/home.png"/><a href="/student/home">首页</a></p>
        <p><img src="/img/manager.png"/><a href="/student/manager">信息管理</a></p>
        <p><img src="/img/vacation.png"/><a href="/student/vacation">申请事假</a></p>
        <p><img src="/img/scholarship.png"/><a href="/student/scholarship">奖学金申请</a></p>
        <p><img src="/img/message.png"/><a href="/student/message">留言板</a></p>
    </div>
</div>
<div id="content">
    <form id="scholarship">
    <div class="title">奖学金申请审批表</div>
    <div class="scholarship_type">
        <a>请选择要申请的奖学金类型：</a>
        <select name="scholarship_type">
            <option value="1">安徽省政府奖学金</option>
            <option value="2">黄山学院迎客松国际学生奖学金</option>
            <option value="3">新生入学奖学金</option>
            <option value="4">学业奖学金</option>
            <option value="5">丝绸之路奖学金</option>
        </select>
    </div>
    <div class="learn_state">
        <div class="state_title">
            学习情况
        </div>
        <div class="learn_from">
            <table>
                <tr>
                    <td><a>必修课程数：</a></td>
                    <td><input type="text" name="curriculum_number" value=""/></td>
                </tr>
                <tr>
                    <td><a>所获得平均学分：</a></td>
                    <td><input type="text" name="average_credit" value=""/></td>
                </tr>
                <tr>
                    <td><a>所获得平均绩点：</a></td>
                    <td><input type="text" name="gpa" value=""/></td>
                </tr>
            </table>
        </div>
    </div>
    <div class="body_state">
        <div class="state_title">
            申请理由
        </div>
        <div class="state_content">
            <textarea name="reason"></textarea>
        </div>
    </div>
    <div class="hands_strength">
        <div class="state_title">
            加分项
        </div>
        <div class="state_content">
            <p style="font-size: 20px;text-indent: 80px;">加分材料提交：</p>
            <P>文件上传提醒：(请将所有材料打包成压缩包，或者整合到单一文档中再上传)</P>
            <table>
                <tr>
                    <td><a>身心素质类:</a></td>
                    <td><input type="file" name="bonus_items_body" value=""/></td>
                </tr>
                <tr>
                    <td><a>实践创新类:</a></td>
                    <td><input type="file" name="bonus_items_practice" value=""/></td>
                </tr>
            </table>
        </div>
    </div>
    </form>
    <center><button onclick="apply()">提交申请</button></center>
</div>
</body>
</html>
